import { getPermissionMenu } from '@/utils/auth'

const hasPermission = (key) => {
    // debugger
    var funcs = getPermissionMenu()
    funcs = funcs.filter(s => s.type == 2)
    return funcs.some(s => s.path == key)
}
export default {
    hasPermission
}